package cn.iocoder.yudao.module.famous.doctor.controller.app.performance.vo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 绩效管理-绩效表单-发布
 *
 * @author wyx
 * @since 2021-08-16
 */
@Data
@Schema(description="绩效管理-绩效表单-发布")
public class PerformancePublish implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 项目code
     */
    @Schema(description = "项目code")
    @TableField("`key`")
    private String key;

    @Schema(description = "主题id")
    private Long pid;

    @Schema(description = "主题key")
    private String pkey;

    @Schema(description = "发布标题")
    private String title;

    @Schema(description = "发布开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate startDate;

    @Schema(description = "发布结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate endDate;

    @Schema(description = "业务名称")
    private String name;

    @Schema(description = "备注")
    private String remake;

    @TableLogic
    @Schema(description = "是否删除 1删除 0未")
    private Integer isDel;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtModified;

    @Schema(description = "提交状态 0未提交 1已提交")
    @TableField(exist = false)
    private Integer submitStatus;

    @Schema(description = "提交时间")
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime submitTime;
}
